package cn.usian.service.serviceimpl;

import cn.usian.mapper.UserMapper;
import cn.usian.pojo.User;
import cn.usian.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User findById(Long id) {
        return userMapper.selectById(id);
    }
}
